@extends('home.layout.user')
@section('user')

<div class="m_right">
            
            <table border="1" class="mem_tab" style="width:870px; text-align:center; margin-top:20px;" cellspacing="0" cellpadding="0">
              <tbody><tr>
                <td class="th_bg" colspan="7">我的发布</td>
              </tr>
              <tr>
                <td width="145"  >商品缩略图</td>
                <td width="145" class="td_bg">商品名</td>
                <td width="145" >商品价格</td>
                <td width="145" class="td_bg">发布时间</td>
                <td width="145">状态</td>
                <td width="145" class="td_bg">操作</td>
              </tr>
              @foreach($goods as $v)
               <tr>
               <td width="145"><img src="{{ $v['pic'] }}"  style="width:122px;height:61px" alt="缩略图"></td>
                <td width="145" class="td_bg">{{ $v['title'] }}</td>
                <td width="145" >{{ $v['reprice'] }}</td>
                <td width="145" class="td_bg">{{ $v['ctime'] }}</td>
                <td width="145">@if($v['status']==0) 出售中 @else 已售出 @endif</td>
                <td width="145" class="td_bg"> <a class="butt" href="/publish/edit?id={{ $v['id'] }}"><button class="buttonedit">修改</button></a> | <a class="butt" href="/publish/del?id={{ $v['id'] }}"><button class="buttondel">删除</button></a> </td>
              </tr>
             @endforeach
            </tbody></table>
            {!! $goods->render() !!}
                                                                         
 
                       
            
			


            
        </div>

@endsection